package top.riske.animalhazardassessment.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "动物危险性分析")
@TableName(value = "analyse")
@Data
public class Analyse {

    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "动物头像链接")
    private String avatar;

    /**
     * 动物名
     */
    @Schema(description = "动物名")
    private String animalName;

    /**
     * 年龄
     */
    @Schema(description = "动物年龄")
    private Integer animalAge;

    /**
     * 物种id
     */
    @Schema(description = "物种id")
    @TableField(value = "species_id")
    private Long speciesId;

    @Schema(description = "物种")
    @TableField(exist = false)
    private Species species;

    /**
     * 是否牵狗绳
     */
    @Schema(description = "是否牵狗绳")
    private Boolean towline;

    /**
     * 健康状态
     */
    @Schema(description = "健康状况，1-健康，2-病")
    private Integer healthy;

    @Schema(description = "动物体格,1-微型，2-小型，3-中型，4-大型")
    private Integer physique;

    @Schema(description = "护食程度,0-无，1-低吼，3-龇牙，4-扑咬")
    @TableField(value = "protect_food")
    private Integer protectFood;

    @Schema(description = "是否已打过疫苗")
    private Boolean vaccines;

    @TableField(value = "risk_point")
    @Schema(description = "总风险指数")
    private Integer riskPoint;

    @TableField(value = "risk_description")
    @Schema(description = "风险AI评估描述")
    private String riskDescription;

    public Analyse() {
    }
}
